const {api} = require("@/api/axios")
import { ElMessage } from 'element-plus'
import upload from '@/components/upload.vue'
import editor from '@/components/Editor/index.vue'
export default {
    install:(app,options)=>{
        app.config.globalProperties.$api = api
        app.config.globalProperties.msgSuccess = (msg)=>ElMessage.success(msg);
        app.config.globalProperties.msgSerror = (msg)=>ElMessage.error(msg);
        //全局组件
        app.component('upload', upload)
        app.component('editor', editor)
    }
}